import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("distribution_config", { schema: "predict" })
export class DistributionConfig {
  @PrimaryGeneratedColumn({ type: "tinyint", name: "id", unsigned: true })
  id: number;

  @Column("decimal", {
    name: "commission_rate",
    comment: "佣金比率",
    precision: 5,
    scale: 2,
    default: () => "'0.00'",
  })
  commissionRate: string;

  @Column("decimal", {
    name: "withdrawal_fee_rate",
    comment: "提现手续费",
    precision: 5,
    scale: 2,
    default: () => "'0.00'",
  })
  withdrawalFeeRate: string;

  @Column("decimal", {
    name: "exchange_fee_rate",
    comment: "兑换手续费",
    precision: 5,
    scale: 2,
    default: () => "'0.00'",
  })
  exchangeFeeRate: string;
}
